<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>体检过程</title>
<link href="${ctx}/css/layout.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/jquery-ui.css" /> 
<script type="text/javascript" charset="utf-8" src="${ctx}/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/js/table.js"></script>
<script type="text/javascript" src="${ctx}/js/dateFormat/jquery.dateFormat-1.0.js"></script>
<script type="text/javascript" src="${ctx}/js/timers/jquery.timers-1.2.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="${ctx}/js/pe/peRecord.js"></script>
<script type="text/javascript">
function setTime() {     
       var currentTime = $.format.date(new Date(),"yyyy年MM月dd日hh:mm:ss");
      $("#htmer_time").val(currentTime);
 }
 $('body').everyTime('1s',setTime);
</script>
<style type="text/css">
.bg{background:#E5E5E5}
.hidden {
	display: none;
}
</style>
</head>

<body>
<form action="pe-record.action" id="mainForm" method="get">
<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
<input type="hidden" name="page.order" id="order" value="${page.order}"/>
<input type="hidden" name="id" id="recordId" value="${id}"/>
<div id="container">
<div id="sidebar"><br />
&nbsp;&nbsp;&nbsp;&nbsp;当前时间:<input type="text" id="htmer_time" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none;  BORDER-BOTTOM: medium none; TEXT-DECORATION: none"/><br />
<br />

<fieldset title=""><legend title="" align="top">待诊列表
</legend>
<div align="center">
职工号/学号:<input type="text" name="personNumber" id="personNumber" value="${personNumber}" size="10" />&nbsp;&nbsp;
<s:submit type="button" theme="simple">查&nbsp;询</s:submit>
</div>
<table border="1" class="t1">
	<tr class="a1">
		<td>序号</td>
		<td>职工号/学号</td>
		<td>状态</td>
	</tr>
</table>
<table border="1" class="t1" id="example">
<s:iterator value="page.result" status="index">
	<tr id="index" onclick="javascript:changeRecord(${id});" >
		<td>${person.id}&nbsp;</td>
		<td>${person.idNumber}&nbsp;</td>
	    <td>${status==0?"待检":"体检中"}&nbsp;</td>
	</tr>
</s:iterator>
</table>
<div align="right">第${page.pageNo}页, 共${page.totalPages}页 <a
	href="javascript:jumpPage(1)">首页</a> <s:if test="page.hasPre">
	<a href="javascript:jumpPage(${page.prePage})">上一页</a>
</s:if> <s:if test="page.hasNext">
	<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
</s:if> <a href="javascript:jumpPage(${page.totalPages})">末页</a></div>
</fieldset>
</div>
<div id="space">
<fieldset><legend>患者基本信息</legend>
<table border="1" class="t1">
<tr>
	<td>姓名:</td>
	<td><span id="personName"></span></td>
	<td>性别:</td>
	<td><span id="gender"></span></td>
</tr>
<tr>
	<td>出生年月:</td>
	<td><span id="birthday"></span></td>
	<td>班主任:</td>
	<td><span id="chargeTeacher"></span></td>
	
</tr>
<tr>
	<td>就读班级:</td>
	<td><span id="clazz"></span></td>
	<td></td>
	<td></td>
</tr>
</table>
</fieldset>
<p></p>
<table>
<tr>
<td>项目检查大类：</td>
<td><select style="width:100px"  id="bigItemId" ></select></td>
<td><input type="button" onclick="getJsonData();" value="查 询" id="search"/></td></tr>
<tr>
<td></td><td></td>
<td><input type="button" onclick="saveItems();" value="保 存" id="save"/></td>
</tr>
</table>
		<table  border="1" id="smallItem" class="t1">
			<tr>
				<td>检查项目</td>
				<td>说明</td>
				<td>检查结果</td>
				<td>参考标准</td>
				<td>结论</td>
			</tr>
			</table>
			<div id="dataJson" style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 120px"> 
           <table border="1" class="t1" id="exampleId" width="100%" height="100%"></table>
</div>
</div></div>
</form>
</body>
</html>